/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.isp.violate.services.internal;


import za.ac.cput.isp.violate.model.Timer;
import za.ac.cput.isp.violate.services.Microwave;



/**
 *
 * @author Abduraghmaan
 */
public class TimedMicrowave implements Microwave {
    
    @Override
    public boolean close(Timer t) {
        if(t.getState().equalsIgnoreCase("close"))
            return true;
        else
            return false;
        
    }

    @Override
    public boolean open(Timer t) {
        if(t.getState().equalsIgnoreCase("open"))
            return true;
        else
            return false;
       
    }

    @Override
    public boolean isEmpty(Timer t) {
        if(t.getState().equalsIgnoreCase("empty"))
            return true;
        else
            return false;
                   
    }

    @Override
    public boolean timeOut(Timer t) {
        if(t.getState().equalsIgnoreCase("end"))
            return true;
        else
            return false;
        
    }
}
